From 0a76710a479c229b8f494dc6b9373020e06ca1df Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 15 Jul 2005 08:22:18 +0000 Subject: [PATCH] Temporary fix for netif ring overflow, until we move netfront/netback to grant tables. --- xen/include/public/io/netif.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xen/include/public/io/netif.h b/xen/include/public/io/netif.h index 35ac622758..821e9b18ea 100644 --- a/xen/include/public/io/netif.h +++ b/xen/include/public/io/netif.h @@ -46,8 +46,18 @@ typedef u32 NETIF_RING_IDX; #define MASK_NETIF_RX_IDX(_i) ((_i)&(NETIF_RX_RING_SIZE-1)) #define MASK_NETIF_TX_IDX(_i) ((_i)&(NETIF_TX_RING_SIZE-1)) +#ifdef __x86_64__ +/* + * This restriction can be lifted when we move netfront/netback to use + * grant tables. This will remove memory_t fields from the above structures + * and thus relax natural alignment restrictions. + */ +#define NETIF_TX_RING_SIZE 128 +#define NETIF_RX_RING_SIZE 128 +#else #define NETIF_TX_RING_SIZE 256 #define NETIF_RX_RING_SIZE 256 +#endif /* This structure must fit in a memory page. */ typedef struct netif_tx_interface { -- 2.30.2